home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mntinc20 / sys / statfs.h < prev    next >
C/C++ Source or Header  |  1992-05-15  |  852b  |  37 lines

  1. /* 
  2.  * statfs.h -- structure for statfs() call.
  3.  */
  4.  
  5. #ifndef _SYS_STATFS_H
  6. #define _SYS_STATFS_H
  7.  
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12. typedef struct {
  13.   long val[2];
  14. } fsid_t;
  15.  
  16. struct statfs {
  17.   long f_type;        /* type of info, zero for now */
  18.   long f_bsize;        /* fundamental file system block size */
  19.   long f_blocks;    /* total blocks in file system */
  20.   long f_bfree;        /* free blocks */
  21. /*
  22.  * Remaining fields are here for BSD compatibility, but they aren't really
  23.  * used for a standard TOS-ish filesystem
  24.  */
  25.   long f_bavail;    /* free blocks available to non-super-user */
  26.   long f_files;        /* total file nodes in file system */
  27.   long f_ffree;        /* free file nodes in fs */
  28.   fsid_t f_fsid;    /* file system id */
  29.   long f_spare[7];    /* spare for later */
  30. };
  31.  
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35.  
  36. #endif    /* _SYS_STATFS_H */
  37.